Skip to content

Split config types schema version - #47

Open
C-Achard wants to merge 2 commits into
mainfrom
cy/config-versions
Open

C-Achard wants to merge 2 commits into
mainfrom
cy/config-versions

Conversation

@C-Achard

@C-Achard C-Achard commented Dec 4, 2026

Copy link
Copy Markdown
Member

A small suggestion to improve flexibility and maintainability along the way.

Main changes

  • versioning.CURRENT_CONFIG_VERSIONS maps each versioned config type, by class name, to a current version.
  • CURRENT_CONFIG_VERSION removed.

- versioning.CURRENT_CONFIG_VERSIONS maps each versioned config type to its current schema version, ProjectConfig and PoseConfig at 0; CURRENT_CONFIG_VERSION is gone
- migrate_config targets the version of the type it migrates; a type not listed is at version 0
- A listed config type built without config_version takes its current version; an unlisted one keeps its own default
- Tests set the version of the type they exercise instead of a global one
@C-Achard C-Achard added this to the Config migration milestone Dec 4, 2026
@C-Achard C-Achard added enhancement New feature or request io: config config.yaml reading, writing and its schema consumer: deeplabcut Needed by or affects DeepLabCut labels Dec 4, 2026
@C-Achard
C-Achard added this pull request to stack #50 December 4, 2026 15:16
@C-Achard C-Achard self-assigned this Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consumer: deeplabcut Needed by or affects DeepLabCut enhancement New feature or request io: config config.yaml reading, writing and its schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant